package com.lm.vo;

import java.util.Objects;

/**
 * @ClassName MajorSimple
 * @Description TODO
 * @Author wn
 * @Date 2019/4/10 0:22
 * @Version 1.0
 **/
public class MajorSimple {
    private String id;
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public MajorSimple() {
    }

    public MajorSimple(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MajorSimple that = (MajorSimple) o;
        return name != null ? name.equals(that.name) : that.name == null;
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }
}
